package com.example.tests;



import org.testng.annotations.Test;

public class ContactCreationTest extends TestBase {
  @Test
  public void testNonEmptyContactCreation() throws Exception {
    openMainPage();
    addNewContact();
    ContactDate contact = new ContactDate();
    contact.firstname =  "first name 1" ;
    contact.lastname = "last name 1" ;
    contact.adress1 = "adress 1" ;
    contact.home1 = "home 1" ;
    contact.mobile1 = "mobile 1" ;
    contact.work = "work 1" ;
    contact.email = "email 1" ;
    contact.email_2 = "email 2" ;
    contact.day = "1" ;
    contact.month = "February" ;
    contact.year = "year " ;
    contact.group = "Rob" ;
    contact.addres2 = "addres 2" ;
    contact.home2 = "home 2" ;
    
	fillContactForm(contact);
    submitContactAdd();
    returnToContactsPage();
  }
  
  
  @Test
  public void testEmptyContactCreation() throws Exception {
    openMainPage();
    addNewContact();
    fillContactForm(new ContactDate("", "", "", "", "", "", "", "", "-", "-", "", "[none]", "", ""));
    submitContactAdd();
    returnToContactsPage();
  }
}
